package com.gxkj.projects.myshopx.entitys;

import com.gxkj.projects.myshopx.enums.GoodTypeStates;

import javax.persistence.*;

/**
 * Created by dell on 2016/3/5.
 */
@Entity
@Table(name = "goods_type")
public class GoodType extends BaseModel{
    private static final long serialVersionUID = 4023343985425154335L;

    @Column(name="name",nullable = false)
    private  String name;//

    @Column(name="states",nullable = false)
    @Enumerated(EnumType.STRING)
    private GoodTypeStates states;//

    @Column(name="attr_group",nullable = false)
    private  String attrGroup;//

    public String getAttrGroup() {
        return attrGroup;
    }

    public void setAttrGroup(String attrGroup) {
        this.attrGroup = attrGroup;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public GoodTypeStates getStates() {
        return states;
    }

    public void setStates(GoodTypeStates states) {
        this.states = states;
    }
}
